package com.sky.service.impl;

import com.sky.entity.WalletTransactions;
import com.sky.mapper.WalletTransactionsMapper;
import com.sky.service.WalletTransactionsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.sky.vo.WalletTransactionsVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author GHOSTER by RemSynch
 * @since 2024-10-24
 */
@Service
public class WalletTransactionsServiceImpl extends ServiceImpl<WalletTransactionsMapper, WalletTransactions> implements WalletTransactionsService {

    @Autowired
    private WalletTransactionsMapper walletTransactionsMapper;

    @Override
    public List<WalletTransactionsVO> listWalletTransactions() {
        return walletTransactionsMapper.listWT();
    }

    @Override
    public List<WalletTransactionsVO> listWalletTransactionsByUserId(String userId) {
        return walletTransactionsMapper.listWTByUserId(userId);
    }
}
